home *** CD-ROM | disk | FTP | other *** search
/ Champak 106 / Vol 106.iso / games / scorched.swf / scripts / frame_116 / DoAction_18.as < prev    next >
Encoding:
Text File  |  2010-04-12  |  1.2 KB  |  42 lines

  1. function startnewround()
  2. {
  3.    var _loc1_ = this;
  4.    grass1x = random(40);
  5.    grass2x = random(40) + 20;
  6.    grass3x = random(40) + 40;
  7.    landdata();
  8.    drawlandscape();
  9.    _loc1_.scorchmarks.createEmptyMovieClip("temp",10);
  10.    scorchlayer = 300;
  11.    backdisp = random(2) + 1;
  12.    _loc1_.background.gotoAndStop(backdisp);
  13.    player1health = 100;
  14.    player2health = 100;
  15.    player1cash = 1000;
  16.    player2cash = 1000;
  17.    player1shield = 1;
  18.    player2shield = 1;
  19.    player1power = 10;
  20.    player2power = 10;
  21.    player1bombtype = 2;
  22.    player2bombtype = 2;
  23.    player1cashreport = "$" + player1cash;
  24.    player2cashreport = "$" + player2cash;
  25.    p1rot = - random(90);
  26.    p2rot = random(90) + 180;
  27.    p1x = random(200) + 50;
  28.    a = Math.floor(p1x / landdetail);
  29.    b = landarray[a];
  30.    p1y = b - 39;
  31.    p2x = random(200) + 550;
  32.    a = Math.floor(p2x / landdetail);
  33.    b = landarray[a];
  34.    p2y = b - 39;
  35.    bombcost = 0;
  36.    _loc1_.player1healthind.lifebar._xscale = player1health;
  37.    _loc1_.player2healthind.lifebar2._xscale = player2health;
  38.    rotateplayers();
  39.    player2.gunturretindicator._visible = false;
  40.    player1.gunturretindicator._visible = false;
  41. }
  42.